package com.gray.blog.arg.sys;

import com.gray.blog.common.arg.BaseArg;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * Created  By zhoux 2019/04/17
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UpdateSysUserInfoArg extends BaseArg {

    @ApiModelProperty(value = "登录名")
    @NotNull
    private String loginName;

    @ApiModelProperty(value = "邮箱")
    @Email
    private String email;

    @ApiModelProperty(value = "手机号")
    @NotNull
    private String phone;

    @ApiModelProperty(value = "头像")
    private String headPhoto;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "座右铭")
    private String motto;


    public boolean isWrongParam() {
        return StringUtils.isBlank(getId());
    }

}
